

#ifndef _I7816_HAL_USART_DEFINE_H_
#define _I7816_HAL_USART_DEFINE_H_

#include <stdint.h>
#include "i7816_define.h"

#include "FreeRTOS.h"
#include "stream_buffer.h"
#include "queue.h"
#include "event_groups.h"

typedef struct _i7816_usart{
    uint32_t dev;
    uint32_t iqrn;
    uint32_t rcu;    
    QueueHandle_t queue;
    EventGroupHandle_t tx_event;
    transfer_dir_t transfer_direction;
    uint8_t id;
    i7816_protocol_t protocol;  //协议类型  
    bool inverse;               //是否反序
    uint8_t FiDi;               //波特率分频参数，7816协议的FiDi
}i7816_usart_t;

#endif


